package com.lancoo.klgcourseware.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by pengmi on 2018/11/13.
 * Description:填空题型挖空数据模型
 */

public class HideWordModel implements Parcelable {

    //例句中的挖空数据值，和例句中&*按顺序一一对应
    private String word;

    private int startIndex;

    private int endIndex;

    private int grade;



    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public int getStartIndex() {
        return startIndex;
    }

    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public void setEndIndex(int endIndex) {
        this.endIndex = endIndex;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int flags) {
        parcel.writeString(word);
        parcel.writeInt(startIndex);
        parcel.writeInt(endIndex);
        parcel.writeInt(grade);
    }

    public HideWordModel(Parcel in){
        word=in.readString();
        startIndex=in.readInt();
        endIndex=in.readInt();
        grade=in.readInt();
    }

    public static final Creator<HideWordModel> CREATOR= new Creator<HideWordModel>() {
        public HideWordModel createFromParcel(Parcel in) {
            return new HideWordModel(in);
        }

        public HideWordModel[] newArray(int size) {
            return new HideWordModel[size];
        }
    };
}
